﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ImobitechModel.com.Controller;
using ImobitechModel.com.Constantes;

namespace Imobitech.Imovel
{
    public partial class ListarImovel : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["login"] != null)
            {
                Logar logar = (Logar)Session["login"];
                ControladorImovel cg = new ControladorImovel();
                gdvImoveis.DataSource = cg.buscaDono(logar);
                gdvImoveis.DataBind();
            }
        }
    }
}